{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "名称"; }
			#mytable td:nth-of-type(2):before { content: "操作"; }
        }		
	</style>

  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
          <section class="col-lg-2 connectedSortable" style=" padding-right:0px;">
          <div class="box box-solid">
            {%include file="ware/left.tpl.php"%}
         </div>
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">管理目录</h3>
              <a href="index.php?a=ware.folderadd" class="btn btn-primary btn-sm" style="float:right;">新 增</a>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div class="table-responsive mailbox-messages">
                <table class="table table-bordered table-striped" id="mytable">
                <thead>
                  <tr>
                     <td>分类名称</td>
                     <td>添加时间</td>
                     <td>操作</td>
                  </tr>
				 </thead>
				 {%foreach from=$folder_lists key=key item=value%}
				 <tr>
                     <td>{%$value.folder_name%}</td>
                     <td>{%$value.create_time%}</td>
                     <td width="150">
                     	  <a href="index.php?a=ware.folderupdate&folder_id={%$value.folder_id%}" class="btn btn-warning btn-xs">修 改</a>
                          <a onclick="if(confirm('警告！确认删除信息?')==false)return false;" href="index.php?a=ware.folderdel&folder_id={%$value.folder_id%} " class="btn btn-danger btn-xs">删 除</a>
                     </td>
                  </tr>
				{%/foreach%}  
                </table>
                <!-- /.table -->
              </div>
			  {%$page%} 
              <!-- /.mail-box-messages -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer no-padding">
            </div>
          </div>
          <!-- /. box -->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
